from base import Base
from selenium.webdriver.common.by import By
from time import sleep
class SouSuoPage(Base):
    sousuokuang=(By.ID,'com.kongfz.app:id/ll_search')
    shurukuang=(By.XPATH,'/hierarchy/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.RelativeLayout/android.widget.RelativeLayout[1]/android.widget.RelativeLayout[2]/android.widget.EditText')
    sousuoanniu='new UiSelector().android.widget.TextView[@text="搜索"]'
    dy='new UiSelector().android.widget.TextView[@text="相关版本在售"]'
    def sousuoyewu(self,neirong):
        self.find_ele(self.shurukuang).click()
        sleep(2)
        self.find_ele(self.shurukuang).send_keys(neirong)
        sleep(2)
        self.find_ele(self.sousuoanniu).click()
        sleep(3)